package com.autumn.annotations.aop.config;

import com.autumn.annotations.aop.aspect.CalcAspect;
import com.autumn.annotations.aop.logic.Cacl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * ClassName: AopMainConfig
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/1/26 2:04 下午
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/1/26 2:04 下午   @Version 1.0        描述
 */
@Configuration
@EnableAspectJAutoProxy
public class AopMainConfig {

    @Bean
    public CalcAspect calcAspect(){
        return new CalcAspect();
    }

    @Bean
    public Cacl cacl(){
        return new Cacl();
    }
}
